package com.by.controller;

import com.by.bean.CustomerInquiry;
import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.mapper.CustomerInquiryMapper;
import com.by.service.CustomerInquiryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@Api(tags = "客户询价")
public class CustomerInquiryController extends BaseController {
    @Autowired
    CustomerInquiryService customerInquiryService;
    @ApiOperation("保存客户询价")
    @PostMapping("/customerInquiry")
    public ResultBean save(@RequestBody CustomerInquiry customerInquiry){
        int rs = customerInquiryService.save(customerInquiry);
        return saveResult(rs);
    }
}
